<?php
namespace app\label\controller;
use app\common\controller\HomeCommon;
class Index extends HomeCommon
{
	
	/**
	 * 行业
	 */
    public function industry()
    {
    	$industry_id=request()->param('industry_id',0,'intval');
    	$model=\think\Loader::model('Label');
    	$data=$model->industry($industry_id);
    	return json(['errcode'=>'0','msg'=>lang('Get success'),'data'=>$data]);
    }
    /**
     * 城市
     */
    public function city()
    {
    	$city_id=request()->param('city_id',0,'intval');
    	$model=\think\Loader::model('Label');
    	$data=$model->city($city_id);
    	return json(['errcode'=>'0','msg'=>lang('Get success'),'data'=>$data]);
    	
    }
    /**
     * 产业链
     */
    public function chain()
    {
    	$chain_id=request()->param('chain_id',0,'intval');
    	$model=\think\Loader::model('Label');
    	$data=$model->chain($chain_id);
    	return json(['errcode'=>'0','msg'=>lang('Get success'),'data'=>$data]);
    	
    }
}
